const express = require('express')
const {userRouter} = require('./router/user.js')
const app = express()

//处理json格式的参数
app.use(express.json()) 
//处理key=value参数
app.use(express.urlencoded({extended:false}))
// 引入路由
app.use(userRouter)

app.listen(3000,console.log('监听3000端口，启动服务成功!'))